<template>
  <div>
    <!-- 数值及整形字段设置 -->
    <ColumnNumSetting v-if="showStyleSet" :value="value"> </ColumnNumSetting>
  </div>
</template>

<script>
import ColumnNumSetting from "./__components__/ColumnNumSetting";
import basicmixins from "../basicmixins";
export default {
  components: { ColumnNumSetting },
  mixins: [basicmixins],
  data() {
    return {};
  },
  computed: {
    showStyleSet() {
      return ["NUMBER", "INTEGER"].indexOf(this.value.type) > -1;
    },
  },
  watch: {
    "value.code": {
      async handler(val) {
        if (val && this.showStyleSet) {
          if (!this.value.numlimitNumber) {
            this.$set(this.value, "numlimitNumber", null);
          }
          if (!this.value.numShowType) {
            this.$set(this.value, "numShowType", "text");
          }
        }
      },
      immediate: true,
    },
  },
  created() {},
  mounted() {},
  methods: {},
};
</script>

<style scoped lang="scss"></style>
